package com.gomyb.admin.module.user.model;

import com.gomyb.common.base.BaseModel;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.math.BigDecimal;

/**
* @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
* 2019-04-01 16:57:21
*/
@Entity
@Table(name = "sys_permission")
@Getter
@Setter
@DynamicUpdate
@DynamicInsert
public class SysPermission extends BaseModel {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "permission_url")
    private String permissionUrl;

    @Column(name = "permission_name")
    private String permissionName;

    @Column(name = "status")
    private Integer status;

    @Column(name = "is_default")
    private Integer isDefault;

    @Column(name = "description")
    private String description;


}
